package com.jk.smartelderlycare.interfaces;

import com.jk.smartelderlycare.dto.SysDynamics;
import com.jk.smartelderlycare.pojo.PagedResponse;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Description 添加描述
 * @Author hhk
 * @LastChangeDate 2024/11/19 20:15
 * @Version v1.0
 */
public interface SysDynamicsServiceApi {
    /**
     * @description: 后端分页查询
     * @param: [sysDynamics, pageNum, pageSize]
     * @return: com.jk.smartelderlycare.pojo.PagedResponse<com.jk.smartelderlycare.dto.SysDynamics>
     * @author hhk
     * @date: 2024/11/19 20:17
     */
    @PostMapping(value = "/sysDynamics/findSysDynamicsPaginationList")
    public PagedResponse<SysDynamics> findSysDynamicsPaginationList(@RequestBody SysDynamics sysDynamics, @RequestParam Integer pageNum,@RequestParam Integer pageSize);
    /**
     * @description: 新增动态
     * @param: [sysDynamics]
     * @return: void
     * @author hhk
     * @date: 2024/11/19 20:17
     */
    @PostMapping(value = "/sysDynamics/addSysDynamics")
    public void addSysDynamics(@RequestBody SysDynamics sysDynamics);
    /**
     * @description: 根据id删除一条数据
     * @param: [dynamicsId]
     * @return: void
     * @author hhk
     * @date: 2024/11/19 20:18
     */
    @DeleteMapping  (value = "/sysDynamics/deleteSysDynamicsById")
    public void deleteSysDynamicsById(@RequestParam Long dynamicsId);
    /** 
     * @description: 根据id回显一条数据
     * @param: [dynamicsId]
     * @return: com.jk.smartelderlycare.dto.SysDynamics
     * @author hhk
     * @date: 2024/11/19 20:19
     */ 
    @GetMapping(value = "/sysDynamics/findSysDynamicsById")
    public SysDynamics findSysDynamicsById(@RequestParam Long dynamicsId);
    /** 
     * @description: 修改动态
     * @param: [sysDynamics]
     * @return: void
     * @author hhk
     * @date: 2024/11/19 20:20
     */ 
    @PutMapping(value = "/sysDynamics/updateSysDynamics")
    public void updateSysDynamics(@RequestBody SysDynamics sysDynamics);
    /** 
     * @description: 修改状态
     * @param: [sysDynamics]
     * @return: void
     * @author hhk
     * @date: 2024/11/19 20:21
     */ 
    @PutMapping(value = "/sysDynamics/updateStatusById")
    public void updateStatusById(@RequestBody SysDynamics sysDynamics);
    /** 
     * @description: 批量删除
     * @param: [ids]
     * @return: void
     * @author hhk
     * @date: 2024/11/19 20:24
     */ 
    @DeleteMapping(value = "/sysDynamics/deleteSysDynamicsByIds")
    public void deleteSysDynamicsByIds(@RequestParam List<Long> ids);
    
    
    
    
    
    
}
